<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Bobble Fruit: Riferimenti per il file disegno.cc</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Bobble Fruit
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generato da Doxygen 1.8.1.2 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Cerca');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Pagina&#160;Principale</span></a></li>
      <li><a href="annotated.html"><span>Classi</span></a></li>
      <li class="current"><a href="files.html"><span>File</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Cerca" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Elenco&#160;dei&#160;file</span></a></li>
      <li><a href="globals.html"><span>Elementi&#160;dei&#160;file</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tutto</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classi</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>File</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Funzioni</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variabili</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Tipi enumerati (enum)</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Valori del tipo enumerato</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Definizioni</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pagine</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Funzioni</a>  </div>
  <div class="headertitle">
<div class="title">Riferimenti per il file disegno.cc</div>  </div>
</div><!--header-->
<div class="contents">

<p>*Questo è un file C++ che contiene le definizioni delle funzioni dichiarate in <a class="el" href="disegno_8h.html" title="Questo è un header file che contiene i protitipi delle funzioni definite in disegno.cc.">disegno.h</a>.  
<a href="#details">Continua...</a></p>
<div class="textblock"><code>#include &lt;allegro5/allegro_primitives.h&gt;</code><br/>
<code>#include &lt;allegro5/allegro_image.h&gt;</code><br/>
<code>#include &lt;allegro5/allegro_audio.h&gt;</code><br/>
<code>#include &lt;allegro5/allegro_acodec.h&gt;</code><br/>
<code>#include &lt;iostream&gt;</code><br/>
<code>#include &quot;<a class="el" href="disegno_8h_source.html">disegno.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="models_8h_source.html">models.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="globali_8h_source.html">globali.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="debug_8h_source.html">debug.h</a>&quot;</code><br/>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
Funzioni</h2></td></tr>
<tr class="memitem:aa6c42b640747279f681cfd45a9b8f52f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="disegno_8cc.html#aa6c42b640747279f681cfd45a9b8f52f">disegna_drago</a> (<a class="el" href="structDrago.html">Drago</a> &amp;<a class="el" href="globali_8h.html#ad5ff877f97ce83db08dd3c6905a66330">drago</a>)</td></tr>
<tr class="memdesc:aa6c42b640747279f681cfd45a9b8f52f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disegna il drago nella posizione corrente, aggiornata ogni volta.  <a href="#aa6c42b640747279f681cfd45a9b8f52f"></a><br/></td></tr>
<tr class="memitem:af5c56067b81879502cbb19277ff3fd90"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="disegno_8cc.html#af5c56067b81879502cbb19277ff3fd90">muovi_drago_sx</a> (<a class="el" href="structDrago.html">Drago</a> &amp;<a class="el" href="globali_8h.html#ad5ff877f97ce83db08dd3c6905a66330">drago</a>)</td></tr>
<tr class="memdesc:af5c56067b81879502cbb19277ff3fd90"><td class="mdescLeft">&#160;</td><td class="mdescRight">Muove l'indice per lo spostamento del drago.  <a href="#af5c56067b81879502cbb19277ff3fd90"></a><br/></td></tr>
<tr class="memitem:acd60b4c44837dc5cdfe7ebb9b5a0baa4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="disegno_8cc.html#acd60b4c44837dc5cdfe7ebb9b5a0baa4">muovi_drago_dx</a> (<a class="el" href="structDrago.html">Drago</a> &amp;<a class="el" href="globali_8h.html#ad5ff877f97ce83db08dd3c6905a66330">drago</a>)</td></tr>
<tr class="memdesc:acd60b4c44837dc5cdfe7ebb9b5a0baa4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Muove l'indice per lo spostamento del drago.  <a href="#acd60b4c44837dc5cdfe7ebb9b5a0baa4"></a><br/></td></tr>
<tr class="memitem:a57e2b7d086631ddb80a0ce9a910504ec"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="disegno_8cc.html#a57e2b7d086631ddb80a0ce9a910504ec">disegna_bolle</a> (<a class="el" href="structBolle.html">Bolle</a> <a class="el" href="globali_8h.html#ae0081eba65b03226aa248d54612ca7c7">bolle</a>[], int dim)</td></tr>
<tr class="memdesc:a57e2b7d086631ddb80a0ce9a910504ec"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disegna ogni bolla presente sullo schermo nella posizione aggiornata.  <a href="#a57e2b7d086631ddb80a0ce9a910504ec"></a><br/></td></tr>
<tr class="memitem:a3dd0fe0a872dd3275e418a9b9a0bc72e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="disegno_8cc.html#a3dd0fe0a872dd3275e418a9b9a0bc72e">spara_bolle</a> (<a class="el" href="structBolle.html">Bolle</a> <a class="el" href="globali_8h.html#ae0081eba65b03226aa248d54612ca7c7">bolle</a>[], int dim, <a class="el" href="structDrago.html">Drago</a> &amp;<a class="el" href="globali_8h.html#ad5ff877f97ce83db08dd3c6905a66330">drago</a>)</td></tr>
<tr class="memdesc:a3dd0fe0a872dd3275e418a9b9a0bc72e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Rende vivo un oggetto di tipo Viene eseguita per ogni bolla nuova sparata dal drago.  <a href="#a3dd0fe0a872dd3275e418a9b9a0bc72e"></a><br/></td></tr>
<tr class="memitem:a8e59be8b3d1c7649d8f62086ae9a1203"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="disegno_8cc.html#a8e59be8b3d1c7649d8f62086ae9a1203">update_bolle</a> (<a class="el" href="structBolle.html">Bolle</a> <a class="el" href="globali_8h.html#ae0081eba65b03226aa248d54612ca7c7">bolle</a>[], int dim)</td></tr>
<tr class="memdesc:a8e59be8b3d1c7649d8f62086ae9a1203"><td class="mdescLeft">&#160;</td><td class="mdescRight">Modifica la y delle bolle vive, decrementandola.  <a href="#a8e59be8b3d1c7649d8f62086ae9a1203"></a><br/></td></tr>
<tr class="memitem:ab100aa5a1644f16f3baa431895e4ef11"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="disegno_8cc.html#ab100aa5a1644f16f3baa431895e4ef11">disegna_robot</a> (<a class="el" href="structRobot.html">Robot</a> <a class="el" href="globali_8h.html#a3658e8c4b8b7295dc44657c5bdb4f59a">robot</a>[], int dim)</td></tr>
<tr class="memdesc:ab100aa5a1644f16f3baa431895e4ef11"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disegna i robot nella posizione aggiornata.  <a href="#ab100aa5a1644f16f3baa431895e4ef11"></a><br/></td></tr>
<tr class="memitem:a7893cd4316b1ce28f6eefe8a2bf089db"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="disegno_8cc.html#a7893cd4316b1ce28f6eefe8a2bf089db">inizializza_partenza_robot</a> (<a class="el" href="structRobot.html">Robot</a> <a class="el" href="globali_8h.html#a3658e8c4b8b7295dc44657c5bdb4f59a">robot</a>[], int dim)</td></tr>
<tr class="memdesc:a7893cd4316b1ce28f6eefe8a2bf089db"><td class="mdescLeft">&#160;</td><td class="mdescRight">Fa nascere un nuovo <a class="el" href="structRobot.html">Robot</a>.  <a href="#a7893cd4316b1ce28f6eefe8a2bf089db"></a><br/></td></tr>
<tr class="memitem:ab88b96f74e27635fddd1e826f67c3cc1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="disegno_8cc.html#ab88b96f74e27635fddd1e826f67c3cc1">update_robot</a> (<a class="el" href="structRobot.html">Robot</a> <a class="el" href="globali_8h.html#a3658e8c4b8b7295dc44657c5bdb4f59a">robot</a>[], int dim)</td></tr>
<tr class="memdesc:ab88b96f74e27635fddd1e826f67c3cc1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Aggiorna la posizione dei robot e anche le Sprite del robot, rispettado il ritardo impostato.  <a href="#ab88b96f74e27635fddd1e826f67c3cc1"></a><br/></td></tr>
<tr class="memitem:a3031997b30b72253964a80c74c1f41aa"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="disegno_8cc.html#a3031997b30b72253964a80c74c1f41aa">disegna_frutta</a> (<a class="el" href="structFrutta.html">Frutta</a> <a class="el" href="globali_8h.html#aa58faeb3510409ab3fda79f898914c49">frutta</a>[], int dim)</td></tr>
<tr class="memdesc:a3031997b30b72253964a80c74c1f41aa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disegna la frutta/dolce nella posizione corretta e aggiornata.  <a href="#a3031997b30b72253964a80c74c1f41aa"></a><br/></td></tr>
<tr class="memitem:a4df53e9dbff78f3da6985c756f086f2e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="disegno_8cc.html#a4df53e9dbff78f3da6985c756f086f2e">inizializza_partenza_frutta</a> (<a class="el" href="structFrutta.html">Frutta</a> <a class="el" href="globali_8h.html#aa58faeb3510409ab3fda79f898914c49">frutta</a>[], int dim)</td></tr>
<tr class="memdesc:a4df53e9dbff78f3da6985c756f086f2e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Per ogni frutto non vivo viene generata un partenza "random".  <a href="#a4df53e9dbff78f3da6985c756f086f2e"></a><br/></td></tr>
<tr class="memitem:a98df7787b5691ee5ef06684680d7093a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="disegno_8cc.html#a98df7787b5691ee5ef06684680d7093a">update_frutta</a> (<a class="el" href="structFrutta.html">Frutta</a> <a class="el" href="globali_8h.html#aa58faeb3510409ab3fda79f898914c49">frutta</a>[], int dim)</td></tr>
<tr class="memdesc:a98df7787b5691ee5ef06684680d7093a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Per ogni frutto/dolce vivo ne aggiorna la posizione.  <a href="#a98df7787b5691ee5ef06684680d7093a"></a><br/></td></tr>
<tr class="memitem:a28c727a6864f0bafac48e6749b0028d3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="disegno_8cc.html#a28c727a6864f0bafac48e6749b0028d3">update_sfondo</a> (<a class="el" href="structSfondo.html">Sfondo</a> &amp;sfondo)</td></tr>
<tr class="memdesc:a28c727a6864f0bafac48e6749b0028d3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Aggiorna la posizione dello sfondo.  <a href="#a28c727a6864f0bafac48e6749b0028d3"></a><br/></td></tr>
<tr class="memitem:a4b21e7f00f5ddd9b90446a550ca7969f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="disegno_8cc.html#a4b21e7f00f5ddd9b90446a550ca7969f">disegna_sfondo</a> (<a class="el" href="structSfondo.html">Sfondo</a> &amp;sfondo)</td></tr>
<tr class="memdesc:a4b21e7f00f5ddd9b90446a550ca7969f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Viene disegnato lo sfondo nella posizione aggiornata.  <a href="#a4b21e7f00f5ddd9b90446a550ca7969f"></a><br/></td></tr>
</table>
<a name="details" id="details"></a><h2>Descrizione dettagliata</h2>
<div class="textblock"><p>*Questo è un file C++ che contiene le definizioni delle funzioni dichiarate in <a class="el" href="disegno_8h.html" title="Questo è un header file che contiene i protitipi delle funzioni definite in disegno.cc.">disegno.h</a>. </p>
<p>Tutte le funzioni interne a questo file sono atte al disegno degli oggetti del programma, o all'aggiornamento della loro posizione per venire poi disegnate nella posizione corretta. </p>
</div><h2>Documentazione delle funzioni</h2>
<a class="anchor" id="a57e2b7d086631ddb80a0ce9a910504ec"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void disegna_bolle </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structBolle.html">Bolle</a>&#160;</td>
          <td class="paramname"><em>bolle</em>[], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>dim</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Disegna ogni bolla presente sullo schermo nella posizione aggiornata. </p>
<p>Ogni bolla se viva viene ridisegnata nella posizione aggiornata dello schermo. </p>
<div class="fragment"><div class="line">{</div>
<div class="line">        <a class="code" href="debug_8h.html#a330bea9b36f638349fec0d06c8ab4c38">D1</a>(cout&lt;&lt;<span class="stringliteral">&quot;  disegna_bolle&quot;</span>&lt;&lt;endl);      </div>
<div class="line">        </div>
<div class="line">        <span class="keywordflow">for</span>( <span class="keywordtype">int</span> i = 0; i &lt; dim; i++)</div>
<div class="line">        {</div>
<div class="line">                <a class="code" href="debug_8h.html#a975397c373ae2a9dc28d0297fa18da56">D2</a>(cout&lt;&lt;<span class="stringliteral">&quot;bolle[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].ID&quot;</span>&lt;&lt;bolle[i].ID&lt;&lt;<span class="stringliteral">&quot;  bolle[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].x&quot;</span>&lt;&lt;bolle[i].x&lt;&lt;<span class="stringliteral">&quot;  bolle[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].y&quot;</span>&lt;&lt;bolle[i].y);</div>
<div class="line">                <a class="code" href="debug_8h.html#a975397c373ae2a9dc28d0297fa18da56">D2</a>(cout&lt;&lt;<span class="stringliteral">&quot; bolle[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].velocita:&quot;</span>&lt;&lt;bolle[i].velocita&lt;&lt;<span class="stringliteral">&quot; bolle[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].raggio:&quot;</span>&lt;&lt;bolle[i].raggio&lt;&lt;endl);</div>
<div class="line">                </div>
<div class="line">                <span class="keywordflow">if</span>(bolle[i].vivo)</div>
<div class="line">                        al_draw_filled_circle(bolle[i].x, bolle[i].y, bolle[i].raggio, al_map_rgb(10, 255, 0));</div>
<div class="line"></div>
<div class="line">        }</div>
<div class="line">}</div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="aa6c42b640747279f681cfd45a9b8f52f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void disegna_drago </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structDrago.html">Drago</a> &amp;&#160;</td>
          <td class="paramname"><em>drago</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Disegna il drago nella posizione corrente, aggiornata ogni volta. </p>
<p>Disegna il drago, l'immagine predefinita per quel movimento: Spara a destra, Spara a sinistra, Fermo, Muovi a destra o a sinistra </p>
<div class="fragment"><div class="line">{</div>
<div class="line">        <a class="code" href="debug_8h.html#a330bea9b36f638349fec0d06c8ab4c38">D1</a>(cout&lt;&lt;<span class="stringliteral">&quot;  disegna_drago&quot;</span>&lt;&lt;endl);</div>
<div class="line">        </div>
<div class="line">        <a class="code" href="debug_8h.html#a975397c373ae2a9dc28d0297fa18da56">D2</a>(cout&lt;&lt;<span class="stringliteral">&quot;drago.ID&quot;</span>&lt;&lt;drago.<a class="code" href="structDrago.html#a8f32c76053f70eb9c8949a3d929593b5" title="IDS di tipo GIOCATORE.">ID</a>&lt;&lt;<span class="stringliteral">&quot;  drago.x&quot;</span>&lt;&lt;drago.<a class="code" href="structDrago.html#a6dcdcb8c1de4aca42ead8ae2b48ec6b7" title="Posizione sulle x.">x</a>&lt;&lt;<span class="stringliteral">&quot;  drago.y&quot;</span>&lt;&lt;drago.<a class="code" href="structDrago.html#a3e3c33c5c4b99a607b1f4322e789f5e1" title="Posizione sulle y.">y</a>&lt;&lt;<span class="stringliteral">&quot; drago.vite&quot;</span>&lt;&lt;drago.<a class="code" href="structDrago.html#a3ee078b1fc05ba5e3738f201f6aecede" title="l&#39;oggetto ha un numero di vite finite le quali muore">vite</a>);</div>
<div class="line">        <a class="code" href="debug_8h.html#a975397c373ae2a9dc28d0297fa18da56">D2</a>(cout&lt;&lt;<span class="stringliteral">&quot; drago.velocita:&quot;</span>&lt;&lt;drago.<a class="code" href="structDrago.html#a01ef6cc1424c6f25d67fcbd1d9b7aa8d" title="Numero di pixel con i quali si sposta.">velocita</a>&lt;&lt;<span class="stringliteral">&quot; drago.boundx:&quot;</span>&lt;&lt;drago.<a class="code" href="structDrago.html#ad3bfdfc0469c1c7021d373365ecb320e" title="Numero di pixel che formano l&#39;oggetto sulle x.">boundx</a>&lt;&lt;<span class="stringliteral">&quot; drago.boundy:&quot;</span>&lt;&lt; drago.<a class="code" href="structDrago.html#a9dc824bdbf09ddad24f4305658845962" title="Numero di pixel che formano l&#39;oggetto sulle y.">boundy</a>);</div>
<div class="line">        <a class="code" href="debug_8h.html#a975397c373ae2a9dc28d0297fa18da56">D2</a>(cout&lt;&lt;<span class="stringliteral">&quot; drago.punti: &quot;</span>&lt;&lt;drago.<a class="code" href="structDrago.html#af7c8aef700c3afdb7129e8751c9619e2" title="Score del giocatore.">punti</a>&lt;&lt;<span class="stringliteral">&quot; drago.maxFrame:&quot;</span>&lt;&lt;drago.<a class="code" href="structDrago.html#a1e76dfe9fa086b32df87582070857f51">maxFrame</a>&lt;&lt;<span class="stringliteral">&quot; drago.frameAttuale:&quot;</span>&lt;&lt;drago.<a class="code" href="structDrago.html#a425cbb3ff8d099f8a993b20fe8fecb07">frameAttuale</a>);</div>
<div class="line">        <a class="code" href="debug_8h.html#a975397c373ae2a9dc28d0297fa18da56">D2</a>(cout&lt;&lt;<span class="stringliteral">&quot; drago.frameCount: &quot;</span>&lt;&lt;drago.<a class="code" href="structDrago.html#a552b236e27085a77b33b123c6b148487">frameCount</a>&lt;&lt;<span class="stringliteral">&quot; drago.frameRit&quot;</span>&lt;&lt;drago.<a class="code" href="structDrago.html#ae5457cf8c9b8a55330e332bed0accdb0">frameRit</a>&lt;&lt;endl);</div>
<div class="line"></div>
<div class="line">        al_draw_bitmap(<a class="code" href="booblefruit_8cc.html#abc2af28df56e2e0ce8b168bd4d191ec7" title="Array che contiene gli oggetti di tipo Bolle.">giocatore</a>[drago.<a class="code" href="structDrago.html#a425cbb3ff8d099f8a993b20fe8fecb07">frameAttuale</a>], drago.<a class="code" href="structDrago.html#a6dcdcb8c1de4aca42ead8ae2b48ec6b7" title="Posizione sulle x.">x</a>, drago.<a class="code" href="structDrago.html#a3e3c33c5c4b99a607b1f4322e789f5e1" title="Posizione sulle y.">y</a>, 0);</div>
<div class="line"></div>
<div class="line">        <span class="comment">//al_draw_filled_rectangle(drago.x,  drago.y, drago.x + drago.boundx, drago.y + drago.boundy, al_map_rgba(255, 0, 255, 100));</span></div>
<div class="line">}</div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a3031997b30b72253964a80c74c1f41aa"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void disegna_frutta </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structFrutta.html">Frutta</a>&#160;</td>
          <td class="paramname"><em>frutta</em>[], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>dim</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Disegna la frutta/dolce nella posizione corretta e aggiornata. </p>
<p>Per ogni frutto dell'array frutta[] viene disegnato sulla finestra di gioco il frutto/dolce nella posizione corretta e aggiornata. </p>
<div class="fragment"><div class="line">{</div>
<div class="line">        <a class="code" href="debug_8h.html#a330bea9b36f638349fec0d06c8ab4c38">D1</a>(cout&lt;&lt;<span class="stringliteral">&quot;  disegna_frutta&quot;</span>&lt;&lt;endl);</div>
<div class="line">        </div>
<div class="line">        <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = 0; i &lt; dim; i++)</div>
<div class="line">        {</div>
<div class="line">                <span class="keywordflow">if</span>(frutta[i].vivo)</div>
<div class="line">                {</div>
<div class="line">                        <a class="code" href="debug_8h.html#a975397c373ae2a9dc28d0297fa18da56">D2</a>(cout&lt;&lt;<span class="stringliteral">&quot;frutta[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].ID&quot;</span>&lt;&lt;frutta[i].ID&lt;&lt;<span class="stringliteral">&quot;  frutta[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].x&quot;</span>&lt;&lt;frutta[i].x&lt;&lt;<span class="stringliteral">&quot;  frutta[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].y&quot;</span>&lt;&lt;frutta[i].y);</div>
<div class="line">                        <a class="code" href="debug_8h.html#a975397c373ae2a9dc28d0297fa18da56">D2</a>(cout&lt;&lt;<span class="stringliteral">&quot; frutta[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].velocita:&quot;</span>&lt;&lt;frutta[i].velocita&lt;&lt;<span class="stringliteral">&quot; frutta[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].boundx:&quot;</span>&lt;&lt;frutta[i].boundx&lt;&lt;<span class="stringliteral">&quot; frutta[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].boundy:&quot;</span>&lt;&lt; frutta[i].boundy&lt;&lt;endl);</div>
<div class="line">                        </div>
<div class="line">                        al_draw_bitmap(<a class="code" href="booblefruit_8cc.html#ab23f35d0e343e30c72d88e5e7cfebe14" title="Array che contiene gli oggetti di tipo Frutta.">bonus</a>[frutta[i].tipo], frutta[i].x, frutta[i].y, 0);</div>
<div class="line">                        <span class="comment">//al_draw_filled_rectangle(robot[i].x, robot[i].y, robot[i].x+robot[i].boundx, robot[i].y+robot[i].boundy, al_map_rgb(100,100,100));</span></div>
<div class="line">                }</div>
<div class="line">        }</div>
<div class="line">}</div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="ab100aa5a1644f16f3baa431895e4ef11"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void disegna_robot </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structRobot.html">Robot</a>&#160;</td>
          <td class="paramname"><em>robot</em>[], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>dim</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Disegna i robot nella posizione aggiornata. </p>
<p>Esegue un ciclo e per ogni robot vivo, richiama una funzione di allegro che disegna l'immagine del robot nella posizione corretta e aggiornata. </p>
<div class="fragment"><div class="line">{</div>
<div class="line">        <a class="code" href="debug_8h.html#a330bea9b36f638349fec0d06c8ab4c38">D1</a>(cout&lt;&lt;<span class="stringliteral">&quot;  disegna_robot&quot;</span>&lt;&lt;endl);</div>
<div class="line">        </div>
<div class="line">        <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = 0; i &lt; dim; i++)</div>
<div class="line">        {</div>
<div class="line">                        <a class="code" href="debug_8h.html#a975397c373ae2a9dc28d0297fa18da56">D2</a>(cout&lt;&lt;<span class="stringliteral">&quot;robot[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].ID&quot;</span>&lt;&lt;robot[i].ID&lt;&lt;<span class="stringliteral">&quot;  robot[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].x&quot;</span>&lt;&lt;robot[i].x&lt;&lt;<span class="stringliteral">&quot;  robot[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].y&quot;</span>&lt;&lt;robot[i].y);</div>
<div class="line">                        <a class="code" href="debug_8h.html#a975397c373ae2a9dc28d0297fa18da56">D2</a>(cout&lt;&lt;<span class="stringliteral">&quot; robot[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].velocita:&quot;</span>&lt;&lt;robot[i].velocita&lt;&lt;<span class="stringliteral">&quot; robot[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].boundx:&quot;</span>&lt;&lt;robot[i].boundx&lt;&lt;<span class="stringliteral">&quot; robot[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].boundy:&quot;</span>&lt;&lt; <a class="code" href="booblefruit_8cc.html#ad5ff877f97ce83db08dd3c6905a66330" title="Oggetto di tipo Drago E&#39; l&#39;oggetto che usa il giocatore per interagire con il gioco.">drago</a>.<a class="code" href="structDrago.html#a9dc824bdbf09ddad24f4305658845962" title="Numero di pixel che formano l&#39;oggetto sulle y.">boundy</a>);</div>
<div class="line">                        <a class="code" href="debug_8h.html#a975397c373ae2a9dc28d0297fa18da56">D2</a>(cout&lt;&lt;<span class="stringliteral">&quot; robot[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].maxFrame:&quot;</span>&lt;&lt;robot[i].maxFrame&lt;&lt;<span class="stringliteral">&quot; robot[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].frameAttuale:&quot;</span>&lt;&lt;robot[i].frameAttuale);</div>
<div class="line">                        <a class="code" href="debug_8h.html#a975397c373ae2a9dc28d0297fa18da56">D2</a>(cout&lt;&lt;<span class="stringliteral">&quot; robot[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].frameCount: &quot;</span>&lt;&lt;robot[i].frameCount&lt;&lt;<span class="stringliteral">&quot; robot[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].frameRit&quot;</span>&lt;&lt;robot[i].frameRit&lt;&lt;endl);</div>
<div class="line">                        </div>
<div class="line">                <span class="keywordflow">if</span>(robot[i].vivo)</div>
<div class="line">                {</div>
<div class="line">                        al_draw_bitmap(<a class="code" href="booblefruit_8cc.html#a53a1899713585c2d69c1cede0220720f" title="Array che contiene gli oggetti di tipo Robot.">nemici</a>[robot[i].frameAttuale], robot[i].x, robot[i].y, 0);</div>
<div class="line">                        <span class="comment">//al_draw_filled_rectangle(robot[i].x, robot[i].y, robot[i].x+robot[i].boundx, robot[i].y+robot[i].boundy, al_map_rgb(100,100,100));</span></div>
<div class="line">                }</div>
<div class="line">        }</div>
<div class="line">}</div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a4b21e7f00f5ddd9b90446a550ca7969f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void disegna_sfondo </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structSfondo.html">Sfondo</a> &amp;&#160;</td>
          <td class="paramname"><em>sfondo</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Viene disegnato lo sfondo nella posizione aggiornata. </p>
<p>Lo sfondo viene disegnato nella posizione aggiornata. Nel caso in cui la x o la y si spostino oltre la dimensione corretta, vengono ripristinate alla posizione iniziale. </p>
<div class="fragment"><div class="line">{</div>
<div class="line">        <a class="code" href="debug_8h.html#a330bea9b36f638349fec0d06c8ab4c38">D1</a>(cout&lt;&lt;<span class="stringliteral">&quot;  disegna_sfondo&quot;</span>&lt;&lt;endl);</div>
<div class="line">        </div>
<div class="line">        <a class="code" href="debug_8h.html#a975397c373ae2a9dc28d0297fa18da56">D2</a>(cout&lt;&lt;<span class="stringliteral">&quot;sfondo.x:&quot;</span>&lt;&lt;sfondo.<a class="code" href="structSfondo.html#ad67a51ec529a9ab1bae350d236c8c317" title="Posizione sulle x.">x</a>&lt;&lt;<span class="stringliteral">&quot; sfondo.y:&quot;</span>&lt;&lt;sfondo.<a class="code" href="structSfondo.html#a6196f78561c6339b7c58fa80c8e81d02" title="Posizione sulle y.">y</a>&lt;&lt;<span class="stringliteral">&quot; sfondo.velX&quot;</span>&lt;&lt; sfondo.<a class="code" href="structSfondo.html#a5f334d76a72bcdd9300c916b4e9075f9" title="Numero di pixel con i quali si sposta, sono definiti passandoli a funzione crea_sfondo.">velY</a>&lt;&lt;<span class="stringliteral">&quot; sfondo.dirX:&quot;</span>&lt;&lt;sfondo.<a class="code" href="structSfondo.html#acaee3bc03f8313e2b8bac00c37eaf10e">dirX</a>&lt;&lt;<span class="stringliteral">&quot; sfondo.dirY:&quot;</span>&lt;&lt;<span class="stringliteral">&quot; sfondo.width&quot;</span>&lt;&lt;<span class="stringliteral">&quot; sfondo.height&quot;</span>&lt;&lt;sfondo.<a class="code" href="structSfondo.html#aaaa272c2a0aac39f854071de2aebf53f" title="Altezza dell&#39;immagine.">height</a>&lt;&lt;endl);</div>
<div class="line">                </div>
<div class="line">        al_draw_bitmap(sfondo.<a class="code" href="structSfondo.html#af540a383e9100c44553240d2dbb3d4be" title="Immagine caricata.">immagine</a>, sfondo.<a class="code" href="structSfondo.html#ad67a51ec529a9ab1bae350d236c8c317" title="Posizione sulle x.">x</a>, sfondo.<a class="code" href="structSfondo.html#a6196f78561c6339b7c58fa80c8e81d02" title="Posizione sulle y.">y</a>, 0);</div>
<div class="line"></div>
<div class="line">        <span class="keywordflow">if</span>(sfondo.<a class="code" href="structSfondo.html#a6196f78561c6339b7c58fa80c8e81d02" title="Posizione sulle y.">y</a> + sfondo.<a class="code" href="structSfondo.html#aaaa272c2a0aac39f854071de2aebf53f" title="Altezza dell&#39;immagine.">height</a> &lt; <a class="code" href="globali_8h.html#af728b7647e0b8c49832983a31f9a2e9b" title="Altezza della finstra di gioco.">HEIGHT</a>)</div>
<div class="line">                al_draw_bitmap(sfondo.<a class="code" href="structSfondo.html#af540a383e9100c44553240d2dbb3d4be" title="Immagine caricata.">immagine</a>, sfondo.<a class="code" href="structSfondo.html#ad67a51ec529a9ab1bae350d236c8c317" title="Posizione sulle x.">x</a>, sfondo.<a class="code" href="structSfondo.html#a6196f78561c6339b7c58fa80c8e81d02" title="Posizione sulle y.">y</a> + sfondo.<a class="code" href="structSfondo.html#aaaa272c2a0aac39f854071de2aebf53f" title="Altezza dell&#39;immagine.">height</a> , 0);</div>
<div class="line">        <span class="keywordflow">if</span>(sfondo.<a class="code" href="structSfondo.html#ad67a51ec529a9ab1bae350d236c8c317" title="Posizione sulle x.">x</a> + sfondo.<a class="code" href="structSfondo.html#a30baf848d22cf79229edf303c5836266" title="Larghezza dell&#39;immagine.">width</a> &lt; 800)</div>
<div class="line">                al_draw_bitmap(sfondo.<a class="code" href="structSfondo.html#af540a383e9100c44553240d2dbb3d4be" title="Immagine caricata.">immagine</a>, sfondo.<a class="code" href="structSfondo.html#ad67a51ec529a9ab1bae350d236c8c317" title="Posizione sulle x.">x</a> + sfondo.<a class="code" href="structSfondo.html#a30baf848d22cf79229edf303c5836266" title="Larghezza dell&#39;immagine.">width</a>, sfondo.<a class="code" href="structSfondo.html#a6196f78561c6339b7c58fa80c8e81d02" title="Posizione sulle y.">y</a> , 0);</div>
<div class="line">}</div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a4df53e9dbff78f3da6985c756f086f2e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void inizializza_partenza_frutta </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structFrutta.html">Frutta</a>&#160;</td>
          <td class="paramname"><em>frutta</em>[], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>dim</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Per ogni frutto non vivo viene generata un partenza "random". </p>
<p>Scorre l'array <a class="el" href="structFrutta.html">Frutta</a>, se è presente un posto dove il frutto è morto, viene generata una posizione "randomizzata" se va a buon fine la condizione if(rand() % 300 == 0). </p>
<div class="fragment"><div class="line">{</div>
<div class="line">        <a class="code" href="debug_8h.html#a330bea9b36f638349fec0d06c8ab4c38">D1</a>(cout&lt;&lt;<span class="stringliteral">&quot;  inizializza_partenza_frutta&quot;</span>&lt;&lt;endl);</div>
<div class="line">        </div>
<div class="line">        <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = 0; i &lt; dim; i++)</div>
<div class="line">        {</div>
<div class="line">                <span class="keywordflow">if</span>(!frutta[i].vivo)</div>
<div class="line">                {</div>
<div class="line">                        <a class="code" href="debug_8h.html#a975397c373ae2a9dc28d0297fa18da56">D2</a>(cout&lt;&lt;<span class="stringliteral">&quot;frutta[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].ID&quot;</span>&lt;&lt;frutta[i].ID&lt;&lt;<span class="stringliteral">&quot;  frutta[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].x&quot;</span>&lt;&lt;frutta[i].x&lt;&lt;<span class="stringliteral">&quot;  frutta[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].y&quot;</span>&lt;&lt;frutta[i].y&lt;&lt;<span class="stringliteral">&quot; robot[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].vite&quot;</span>&lt;&lt;<a class="code" href="booblefruit_8cc.html#ad5ff877f97ce83db08dd3c6905a66330" title="Oggetto di tipo Drago E&#39; l&#39;oggetto che usa il giocatore per interagire con il gioco.">drago</a>.<a class="code" href="structDrago.html#a3ee078b1fc05ba5e3738f201f6aecede" title="l&#39;oggetto ha un numero di vite finite le quali muore">vite</a>);</div>
<div class="line">                        <a class="code" href="debug_8h.html#a975397c373ae2a9dc28d0297fa18da56">D2</a>(cout&lt;&lt;<span class="stringliteral">&quot; frutta[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].velocita:&quot;</span>&lt;&lt;frutta[i].velocita&lt;&lt;<span class="stringliteral">&quot; frutta[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].boundx:&quot;</span>&lt;&lt;frutta[i].boundx&lt;&lt;<span class="stringliteral">&quot; frutta[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].boundy:&quot;</span>&lt;&lt; frutta[i].boundy&lt;&lt;endl);</div>
<div class="line">                        </div>
<div class="line">                        <span class="keywordflow">if</span>(rand() % 300 == 0)</div>
<div class="line">                        {</div>
<div class="line">                                frutta[i].<a class="code" href="structFrutta.html#a53e8fbbef01cb354f994116ca3473b3f" title="Se l&#39;oggetto è vivo viene disegnato.">vivo</a> = <span class="keyword">true</span>;</div>
<div class="line">                                frutta[i].<a class="code" href="structFrutta.html#aaf70dbe441fbd4254411e116f7d0073a" title="Posizione sulle x.">x</a> = 30 + rand() % (<a class="code" href="globali_8h.html#a9649ab8139c4c2ea5c93625b30d92a05" title="Largezza della finestra di gioco.">WIDTH</a> - 60);</div>
<div class="line">                                frutta[i].<a class="code" href="structFrutta.html#a71b27af7d085f2786e76fc9ba606a152" title="Posizione sulle y.">y</a> = 0;</div>
<div class="line"></div>
<div class="line">                                <span class="keywordflow">break</span>;</div>
<div class="line">                        }</div>
<div class="line">                }</div>
<div class="line">        }</div>
<div class="line">}</div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a7893cd4316b1ce28f6eefe8a2bf089db"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void inizializza_partenza_robot </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structRobot.html">Robot</a>&#160;</td>
          <td class="paramname"><em>robot</em>[], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>dim</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Fa nascere un nuovo <a class="el" href="structRobot.html">Robot</a>. </p>
<p>Se sulla finestra di gioco non si è raggiunto il <a class="el" href="globali_8h.html#a3f522072322d8112dc00ae9aea94ed0a" title="Costante del numero di nemici/robot massimi in array nemici[], presenti sullo schermo.">NUM_ROBOTS</a> massimo, viene impostato a vivo il campo di quel robot e generata una x a "random nel range della <a class="el" href="globali_8h.html#a9649ab8139c4c2ea5c93625b30d92a05" title="Largezza della finestra di gioco.">WIDTH</a>. E' possibile che due o più robot risultino sovrapposti. </p>
<div class="fragment"><div class="line">{</div>
<div class="line">        <a class="code" href="debug_8h.html#a330bea9b36f638349fec0d06c8ab4c38">D1</a>(cout&lt;&lt;<span class="stringliteral">&quot;  inizializza_partenza_robot&quot;</span>&lt;&lt;endl);</div>
<div class="line">        </div>
<div class="line">        <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = 0; i &lt; dim; i++)</div>
<div class="line">        {</div>
<div class="line">                <span class="keywordflow">if</span>(!robot[i].vivo)</div>
<div class="line">                {</div>
<div class="line">                        <span class="keywordflow">if</span>(rand() % 300 == 0)</div>
<div class="line">                        {</div>
<div class="line">                                robot[i].<a class="code" href="structRobot.html#aacbd2887c22ede3e590492f2f03b3e1d" title="Se l&#39;oggetto è vivo viene disegnato.">vivo</a> = <span class="keyword">true</span>;</div>
<div class="line">                                robot[i].<a class="code" href="structRobot.html#a32c50e8f8352da3601c34c54f32649fa" title="Posizione sulle x.">x</a> = 29 + rand() % (<a class="code" href="globali_8h.html#a9649ab8139c4c2ea5c93625b30d92a05" title="Largezza della finestra di gioco.">WIDTH</a> - 60);</div>
<div class="line">                                robot[i].<a class="code" href="structRobot.html#aa9d4cd428042e1f5dd4723dd383e38d7" title="Posizione sulle y.">y</a> = 0;</div>
<div class="line"></div>
<div class="line">                                <span class="keywordflow">break</span>;</div>
<div class="line">                        }</div>
<div class="line">                }</div>
<div class="line">                </div>
<div class="line">                <a class="code" href="debug_8h.html#a975397c373ae2a9dc28d0297fa18da56">D2</a>(cout&lt;&lt;<span class="stringliteral">&quot;robot[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].ID&quot;</span>&lt;&lt;robot[i].ID&lt;&lt;<span class="stringliteral">&quot;  robot[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].x&quot;</span>&lt;&lt;robot[i].x&lt;&lt;<span class="stringliteral">&quot;  robot[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].y&quot;</span>&lt;&lt;robot[i].y);</div>
<div class="line">                <a class="code" href="debug_8h.html#a975397c373ae2a9dc28d0297fa18da56">D2</a>(cout&lt;&lt;<span class="stringliteral">&quot; robot[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].velocita:&quot;</span>&lt;&lt;robot[i].velocita&lt;&lt;<span class="stringliteral">&quot; robot[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].boundx:&quot;</span>&lt;&lt;robot[i].boundx&lt;&lt;<span class="stringliteral">&quot; robot[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].boundy:&quot;</span>&lt;&lt; robot[i].boundy);</div>
<div class="line">                <a class="code" href="debug_8h.html#a975397c373ae2a9dc28d0297fa18da56">D2</a>(cout&lt;&lt;<span class="stringliteral">&quot; robot[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].maxFrame:&quot;</span>&lt;&lt;robot[i].maxFrame&lt;&lt;<span class="stringliteral">&quot; robot[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].frameAttuale:&quot;</span>&lt;&lt;robot[i].frameAttuale);</div>
<div class="line">                <a class="code" href="debug_8h.html#a975397c373ae2a9dc28d0297fa18da56">D2</a>(cout&lt;&lt;<span class="stringliteral">&quot; robot[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].frameCount: &quot;</span>&lt;&lt;robot[i].frameCount&lt;&lt;<span class="stringliteral">&quot; robot[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].frameRit&quot;</span>&lt;&lt;robot[i].frameRit&lt;&lt;endl);     </div>
<div class="line">        }</div>
<div class="line">}</div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="acd60b4c44837dc5cdfe7ebb9b5a0baa4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void muovi_drago_dx </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structDrago.html">Drago</a> &amp;&#160;</td>
          <td class="paramname"><em>drago</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Muove l'indice per lo spostamento del drago. </p>
<p>Muove l'indice che gestisce il range di immagini dedicate allo spostamento verso destra </p>
<div class="fragment"><div class="line">{</div>
<div class="line">        <a class="code" href="debug_8h.html#a330bea9b36f638349fec0d06c8ab4c38">D1</a>(cout&lt;&lt;<span class="stringliteral">&quot;  muovi_drago_dx&quot;</span>&lt;&lt;endl);</div>
<div class="line">        </div>
<div class="line">        <a class="code" href="debug_8h.html#a975397c373ae2a9dc28d0297fa18da56">D2</a>(cout&lt;&lt;<span class="stringliteral">&quot;drago.ID&quot;</span>&lt;&lt;drago.<a class="code" href="structDrago.html#a8f32c76053f70eb9c8949a3d929593b5" title="IDS di tipo GIOCATORE.">ID</a>&lt;&lt;<span class="stringliteral">&quot;  drago.x&quot;</span>&lt;&lt;drago.<a class="code" href="structDrago.html#a6dcdcb8c1de4aca42ead8ae2b48ec6b7" title="Posizione sulle x.">x</a>&lt;&lt;<span class="stringliteral">&quot;  drago.y&quot;</span>&lt;&lt;drago.<a class="code" href="structDrago.html#a3e3c33c5c4b99a607b1f4322e789f5e1" title="Posizione sulle y.">y</a>&lt;&lt;<span class="stringliteral">&quot; drago.vite&quot;</span>&lt;&lt;drago.<a class="code" href="structDrago.html#a3ee078b1fc05ba5e3738f201f6aecede" title="l&#39;oggetto ha un numero di vite finite le quali muore">vite</a>);</div>
<div class="line">        <a class="code" href="debug_8h.html#a975397c373ae2a9dc28d0297fa18da56">D2</a>(cout&lt;&lt;<span class="stringliteral">&quot; drago.velocita:&quot;</span>&lt;&lt;drago.<a class="code" href="structDrago.html#a01ef6cc1424c6f25d67fcbd1d9b7aa8d" title="Numero di pixel con i quali si sposta.">velocita</a>&lt;&lt;<span class="stringliteral">&quot; drago.boundx:&quot;</span>&lt;&lt;drago.<a class="code" href="structDrago.html#ad3bfdfc0469c1c7021d373365ecb320e" title="Numero di pixel che formano l&#39;oggetto sulle x.">boundx</a>&lt;&lt;<span class="stringliteral">&quot; drago.boundy:&quot;</span>&lt;&lt; drago.<a class="code" href="structDrago.html#a9dc824bdbf09ddad24f4305658845962" title="Numero di pixel che formano l&#39;oggetto sulle y.">boundy</a>);</div>
<div class="line">        <a class="code" href="debug_8h.html#a975397c373ae2a9dc28d0297fa18da56">D2</a>(cout&lt;&lt;<span class="stringliteral">&quot; drago.punti: &quot;</span>&lt;&lt;drago.<a class="code" href="structDrago.html#af7c8aef700c3afdb7129e8751c9619e2" title="Score del giocatore.">punti</a>&lt;&lt;<span class="stringliteral">&quot; drago.maxFrame:&quot;</span>&lt;&lt;drago.<a class="code" href="structDrago.html#a1e76dfe9fa086b32df87582070857f51">maxFrame</a>&lt;&lt;<span class="stringliteral">&quot; drago.frameAttuale:&quot;</span>&lt;&lt;drago.<a class="code" href="structDrago.html#a425cbb3ff8d099f8a993b20fe8fecb07">frameAttuale</a>);</div>
<div class="line">        <a class="code" href="debug_8h.html#a975397c373ae2a9dc28d0297fa18da56">D2</a>(cout&lt;&lt;<span class="stringliteral">&quot; drago.frameCount: &quot;</span>&lt;&lt;drago.<a class="code" href="structDrago.html#a552b236e27085a77b33b123c6b148487">frameCount</a>&lt;&lt;<span class="stringliteral">&quot; drago.frameRit&quot;</span>&lt;&lt;drago.<a class="code" href="structDrago.html#ae5457cf8c9b8a55330e332bed0accdb0">frameRit</a>&lt;&lt;endl);</div>
<div class="line">        </div>
<div class="line">        </div>
<div class="line">        <span class="keywordflow">if</span>(drago.<a class="code" href="structDrago.html#a6dcdcb8c1de4aca42ead8ae2b48ec6b7" title="Posizione sulle x.">x</a> &gt; <a class="code" href="globali_8h.html#a9649ab8139c4c2ea5c93625b30d92a05" title="Largezza della finestra di gioco.">WIDTH</a>-50)</div>
<div class="line">                drago.<a class="code" href="structDrago.html#a6dcdcb8c1de4aca42ead8ae2b48ec6b7" title="Posizione sulle x.">x</a> = <a class="code" href="globali_8h.html#a9649ab8139c4c2ea5c93625b30d92a05" title="Largezza della finestra di gioco.">WIDTH</a>-50;</div>
<div class="line">                </div>
<div class="line">        assert(drago.<a class="code" href="structDrago.html#a6dcdcb8c1de4aca42ead8ae2b48ec6b7" title="Posizione sulle x.">x</a> &lt;= <a class="code" href="globali_8h.html#a9649ab8139c4c2ea5c93625b30d92a05" title="Largezza della finestra di gioco.">WIDTH</a>-50);</div>
<div class="line">        </div>
<div class="line">        <span class="keywordflow">if</span>(++drago.<a class="code" href="structDrago.html#a552b236e27085a77b33b123c6b148487">frameCount</a> &gt;= drago.<a class="code" href="structDrago.html#ae5457cf8c9b8a55330e332bed0accdb0">frameRit</a>)</div>
<div class="line">        {</div>
<div class="line">                drago.<a class="code" href="structDrago.html#a425cbb3ff8d099f8a993b20fe8fecb07">frameAttuale</a> ++;</div>
<div class="line">                <span class="keywordflow">if</span>(drago.<a class="code" href="structDrago.html#a425cbb3ff8d099f8a993b20fe8fecb07">frameAttuale</a> &gt; drago.<a class="code" href="structDrago.html#a1e76dfe9fa086b32df87582070857f51">maxFrame</a>)</div>
<div class="line">                        drago.<a class="code" href="structDrago.html#a425cbb3ff8d099f8a993b20fe8fecb07">frameAttuale</a>=0;</div>
<div class="line">                        </div>
<div class="line">                drago.<a class="code" href="structDrago.html#a552b236e27085a77b33b123c6b148487">frameCount</a>=0;</div>
<div class="line">        }</div>
<div class="line">        drago.<a class="code" href="structDrago.html#a6dcdcb8c1de4aca42ead8ae2b48ec6b7" title="Posizione sulle x.">x</a> += drago.<a class="code" href="structDrago.html#a01ef6cc1424c6f25d67fcbd1d9b7aa8d" title="Numero di pixel con i quali si sposta.">velocita</a>;</div>
<div class="line">}</div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="af5c56067b81879502cbb19277ff3fd90"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void muovi_drago_sx </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structDrago.html">Drago</a> &amp;&#160;</td>
          <td class="paramname"><em>drago</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Muove l'indice per lo spostamento del drago. </p>
<p>Muove l'indice che gestisce il range di immagini dedicate allo spostamento verso sinistra </p>
<div class="fragment"><div class="line">{</div>
<div class="line"></div>
<div class="line">        <a class="code" href="debug_8h.html#a330bea9b36f638349fec0d06c8ab4c38">D1</a>(cout&lt;&lt;<span class="stringliteral">&quot;  muovi_drago_sx&quot;</span>&lt;&lt;endl);</div>
<div class="line">        </div>
<div class="line">        <a class="code" href="debug_8h.html#a975397c373ae2a9dc28d0297fa18da56">D2</a>(cout&lt;&lt;<span class="stringliteral">&quot;drago.ID&quot;</span>&lt;&lt;drago.<a class="code" href="structDrago.html#a8f32c76053f70eb9c8949a3d929593b5" title="IDS di tipo GIOCATORE.">ID</a>&lt;&lt;<span class="stringliteral">&quot;  drago.x&quot;</span>&lt;&lt;drago.<a class="code" href="structDrago.html#a6dcdcb8c1de4aca42ead8ae2b48ec6b7" title="Posizione sulle x.">x</a>&lt;&lt;<span class="stringliteral">&quot;  drago.y&quot;</span>&lt;&lt;drago.<a class="code" href="structDrago.html#a3e3c33c5c4b99a607b1f4322e789f5e1" title="Posizione sulle y.">y</a>&lt;&lt;<span class="stringliteral">&quot; drago.vite&quot;</span>&lt;&lt;drago.<a class="code" href="structDrago.html#a3ee078b1fc05ba5e3738f201f6aecede" title="l&#39;oggetto ha un numero di vite finite le quali muore">vite</a>);</div>
<div class="line">        <a class="code" href="debug_8h.html#a975397c373ae2a9dc28d0297fa18da56">D2</a>(cout&lt;&lt;<span class="stringliteral">&quot; drago.velocita:&quot;</span>&lt;&lt;drago.<a class="code" href="structDrago.html#a01ef6cc1424c6f25d67fcbd1d9b7aa8d" title="Numero di pixel con i quali si sposta.">velocita</a>&lt;&lt;<span class="stringliteral">&quot; drago.boundx:&quot;</span>&lt;&lt;drago.<a class="code" href="structDrago.html#ad3bfdfc0469c1c7021d373365ecb320e" title="Numero di pixel che formano l&#39;oggetto sulle x.">boundx</a>&lt;&lt;<span class="stringliteral">&quot; drago.boundy:&quot;</span>&lt;&lt; drago.<a class="code" href="structDrago.html#a9dc824bdbf09ddad24f4305658845962" title="Numero di pixel che formano l&#39;oggetto sulle y.">boundy</a>);</div>
<div class="line">        <a class="code" href="debug_8h.html#a975397c373ae2a9dc28d0297fa18da56">D2</a>(cout&lt;&lt;<span class="stringliteral">&quot; drago.punti: &quot;</span>&lt;&lt;drago.<a class="code" href="structDrago.html#af7c8aef700c3afdb7129e8751c9619e2" title="Score del giocatore.">punti</a>&lt;&lt;<span class="stringliteral">&quot; drago.maxFrame:&quot;</span>&lt;&lt;drago.<a class="code" href="structDrago.html#a1e76dfe9fa086b32df87582070857f51">maxFrame</a>&lt;&lt;<span class="stringliteral">&quot; drago.frameAttuale:&quot;</span>&lt;&lt;drago.<a class="code" href="structDrago.html#a425cbb3ff8d099f8a993b20fe8fecb07">frameAttuale</a>);</div>
<div class="line">        <a class="code" href="debug_8h.html#a975397c373ae2a9dc28d0297fa18da56">D2</a>(cout&lt;&lt;<span class="stringliteral">&quot; drago.frameCount: &quot;</span>&lt;&lt;drago.<a class="code" href="structDrago.html#a552b236e27085a77b33b123c6b148487">frameCount</a>&lt;&lt;<span class="stringliteral">&quot; drago.frameRit&quot;</span>&lt;&lt;drago.<a class="code" href="structDrago.html#ae5457cf8c9b8a55330e332bed0accdb0">frameRit</a>&lt;&lt;endl);</div>
<div class="line">        </div>
<div class="line">        <span class="keywordflow">if</span>(drago.<a class="code" href="structDrago.html#a6dcdcb8c1de4aca42ead8ae2b48ec6b7" title="Posizione sulle x.">x</a> &lt; 0)</div>
<div class="line">                drago.<a class="code" href="structDrago.html#a6dcdcb8c1de4aca42ead8ae2b48ec6b7" title="Posizione sulle x.">x</a> = 0;</div>
<div class="line">        assert(drago.<a class="code" href="structDrago.html#a6dcdcb8c1de4aca42ead8ae2b48ec6b7" title="Posizione sulle x.">x</a> &gt;= 0);</div>
<div class="line">        </div>
<div class="line">        <span class="keywordflow">if</span>(++drago.<a class="code" href="structDrago.html#a552b236e27085a77b33b123c6b148487">frameCount</a> &gt;= drago.<a class="code" href="structDrago.html#ae5457cf8c9b8a55330e332bed0accdb0">frameRit</a>)</div>
<div class="line">        {</div>
<div class="line">                drago.<a class="code" href="structDrago.html#a425cbb3ff8d099f8a993b20fe8fecb07">frameAttuale</a> ++;</div>
<div class="line">                <span class="keywordflow">if</span>(drago.<a class="code" href="structDrago.html#a425cbb3ff8d099f8a993b20fe8fecb07">frameAttuale</a> &gt; drago.<a class="code" href="structDrago.html#a1e76dfe9fa086b32df87582070857f51">maxFrame</a>)</div>
<div class="line">                        drago.<a class="code" href="structDrago.html#a425cbb3ff8d099f8a993b20fe8fecb07">frameAttuale</a> = 5;</div>
<div class="line">                drago.<a class="code" href="structDrago.html#a552b236e27085a77b33b123c6b148487">frameCount</a> = 0;</div>
<div class="line">        }</div>
<div class="line">        drago.<a class="code" href="structDrago.html#a6dcdcb8c1de4aca42ead8ae2b48ec6b7" title="Posizione sulle x.">x</a> -= drago.<a class="code" href="structDrago.html#a01ef6cc1424c6f25d67fcbd1d9b7aa8d" title="Numero di pixel con i quali si sposta.">velocita</a>;</div>
<div class="line"></div>
<div class="line">}</div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a3dd0fe0a872dd3275e418a9b9a0bc72e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void spara_bolle </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structBolle.html">Bolle</a>&#160;</td>
          <td class="paramname"><em>bolle</em>[], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>dim</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structDrago.html">Drago</a> &amp;&#160;</td>
          <td class="paramname"><em>drago</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Rende vivo un oggetto di tipo Viene eseguita per ogni bolla nuova sparata dal drago. </p>
<p>Trova un posto vuoto all'interno dell'array bolle[] , e dichiara quella bolla, prima morta, viva e definisce la sua posizione iniziale sopra la testa del drago. </p>
<div class="fragment"><div class="line">{</div>
<div class="line">        <a class="code" href="debug_8h.html#a330bea9b36f638349fec0d06c8ab4c38">D1</a>(cout&lt;&lt;<span class="stringliteral">&quot;  spara_bolle&quot;</span>&lt;&lt;endl);</div>
<div class="line">        </div>
<div class="line">        <a class="code" href="debug_8h.html#a975397c373ae2a9dc28d0297fa18da56">D2</a>(cout&lt;&lt;<span class="stringliteral">&quot;drago.ID&quot;</span>&lt;&lt;drago.<a class="code" href="structDrago.html#a8f32c76053f70eb9c8949a3d929593b5" title="IDS di tipo GIOCATORE.">ID</a>&lt;&lt;<span class="stringliteral">&quot;  drago.x&quot;</span>&lt;&lt;drago.<a class="code" href="structDrago.html#a6dcdcb8c1de4aca42ead8ae2b48ec6b7" title="Posizione sulle x.">x</a>&lt;&lt;<span class="stringliteral">&quot;  drago.y&quot;</span>&lt;&lt;drago.<a class="code" href="structDrago.html#a3e3c33c5c4b99a607b1f4322e789f5e1" title="Posizione sulle y.">y</a>&lt;&lt;<span class="stringliteral">&quot; drago.vite&quot;</span>&lt;&lt;drago.<a class="code" href="structDrago.html#a3ee078b1fc05ba5e3738f201f6aecede" title="l&#39;oggetto ha un numero di vite finite le quali muore">vite</a>);</div>
<div class="line">        <a class="code" href="debug_8h.html#a975397c373ae2a9dc28d0297fa18da56">D2</a>(cout&lt;&lt;<span class="stringliteral">&quot; drago.velocita:&quot;</span>&lt;&lt;drago.<a class="code" href="structDrago.html#a01ef6cc1424c6f25d67fcbd1d9b7aa8d" title="Numero di pixel con i quali si sposta.">velocita</a>&lt;&lt;<span class="stringliteral">&quot; drago.boundx:&quot;</span>&lt;&lt;drago.<a class="code" href="structDrago.html#ad3bfdfc0469c1c7021d373365ecb320e" title="Numero di pixel che formano l&#39;oggetto sulle x.">boundx</a>&lt;&lt;<span class="stringliteral">&quot; drago.boundy:&quot;</span>&lt;&lt; drago.<a class="code" href="structDrago.html#a9dc824bdbf09ddad24f4305658845962" title="Numero di pixel che formano l&#39;oggetto sulle y.">boundy</a>);</div>
<div class="line">        <a class="code" href="debug_8h.html#a975397c373ae2a9dc28d0297fa18da56">D2</a>(cout&lt;&lt;<span class="stringliteral">&quot; drago.punti: &quot;</span>&lt;&lt;drago.<a class="code" href="structDrago.html#af7c8aef700c3afdb7129e8751c9619e2" title="Score del giocatore.">punti</a>&lt;&lt;<span class="stringliteral">&quot; drago.maxFrame:&quot;</span>&lt;&lt;drago.<a class="code" href="structDrago.html#a1e76dfe9fa086b32df87582070857f51">maxFrame</a>&lt;&lt;<span class="stringliteral">&quot; drago.frameAttuale:&quot;</span>&lt;&lt;drago.<a class="code" href="structDrago.html#a425cbb3ff8d099f8a993b20fe8fecb07">frameAttuale</a>);</div>
<div class="line">        <a class="code" href="debug_8h.html#a975397c373ae2a9dc28d0297fa18da56">D2</a>(cout&lt;&lt;<span class="stringliteral">&quot; drago.frameCount: &quot;</span>&lt;&lt;drago.<a class="code" href="structDrago.html#a552b236e27085a77b33b123c6b148487">frameCount</a>&lt;&lt;<span class="stringliteral">&quot; drago.frameRit&quot;</span>&lt;&lt;drago.<a class="code" href="structDrago.html#ae5457cf8c9b8a55330e332bed0accdb0">frameRit</a>&lt;&lt;endl);</div>
<div class="line">        </div>
<div class="line">        <span class="keywordflow">for</span>( <span class="keywordtype">int</span> i = 0; i &lt; dim; i++)</div>
<div class="line">        {</div>
<div class="line">                <a class="code" href="debug_8h.html#a975397c373ae2a9dc28d0297fa18da56">D2</a>(cout&lt;&lt;<span class="stringliteral">&quot;bolle[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].ID&quot;</span>&lt;&lt;bolle[i].ID&lt;&lt;<span class="stringliteral">&quot;  bolle[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].x&quot;</span>&lt;&lt;bolle[i].x&lt;&lt;<span class="stringliteral">&quot;  bolle[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].y&quot;</span>&lt;&lt;bolle[i].y);</div>
<div class="line">                <a class="code" href="debug_8h.html#a975397c373ae2a9dc28d0297fa18da56">D2</a>(cout&lt;&lt;<span class="stringliteral">&quot; bolle[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].velocita:&quot;</span>&lt;&lt;bolle[i].velocita&lt;&lt;<span class="stringliteral">&quot; bolle[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].raggio:&quot;</span>&lt;&lt;bolle[i].raggio&lt;&lt;endl);</div>
<div class="line">                </div>
<div class="line">                <span class="keywordflow">if</span>(!bolle[i].vivo)</div>
<div class="line">                {</div>
<div class="line">                        bolle[i].<a class="code" href="structBolle.html#ab2fa62aaf673352ee6e9cd938dd3a8d3" title="Posizione sulle x.">x</a> = drago.<a class="code" href="structDrago.html#a6dcdcb8c1de4aca42ead8ae2b48ec6b7" title="Posizione sulle x.">x</a> + 17;</div>
<div class="line">                        bolle[i].<a class="code" href="structBolle.html#aa24436465da1e631f5855f76ed14579c" title="Posizione sulle y.">y</a> = drago.<a class="code" href="structDrago.html#a3e3c33c5c4b99a607b1f4322e789f5e1" title="Posizione sulle y.">y</a>;</div>
<div class="line">                        bolle[i].<a class="code" href="structBolle.html#a7a968c449292c92c9fe0d789731ef52b" title="Se l&#39;oggetto è vivo viene disegnato.">vivo</a> = <span class="keyword">true</span>;</div>
<div class="line">                        al_play_sample(<a class="code" href="booblefruit_8cc.html#acd20d53d39c635e615b4e641868c60cf" title="Musica ripodotta durante lo sparo della bolle.">spara</a>, 1, 0, 1, ALLEGRO_PLAYMODE_ONCE, 0);</div>
<div class="line">                        <span class="keywordflow">break</span>;</div>
<div class="line">                }</div>
<div class="line">        }</div>
<div class="line">}</div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a8e59be8b3d1c7649d8f62086ae9a1203"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void update_bolle </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structBolle.html">Bolle</a>&#160;</td>
          <td class="paramname"><em>bolle</em>[], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>dim</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Modifica la y delle bolle vive, decrementandola. </p>
<p>Viene decrementato il valore delle bolle vive di tanti pixel quanto e' specificato nella velocità, che è un campo di <a class="el" href="structBolle.html">Bolle</a> </p>
<div class="fragment"><div class="line">{</div>
<div class="line">        <a class="code" href="debug_8h.html#a330bea9b36f638349fec0d06c8ab4c38">D1</a>(cout&lt;&lt;<span class="stringliteral">&quot;  update_bolle&quot;</span>&lt;&lt;endl);</div>
<div class="line">        </div>
<div class="line">        <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = 0; i &lt; dim; i++)</div>
<div class="line">        {</div>
<div class="line">                <a class="code" href="debug_8h.html#a975397c373ae2a9dc28d0297fa18da56">D2</a>(cout&lt;&lt;<span class="stringliteral">&quot;bolle[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].ID&quot;</span>&lt;&lt;bolle[i].ID&lt;&lt;<span class="stringliteral">&quot;  bolle[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].x&quot;</span>&lt;&lt;bolle[i].x&lt;&lt;<span class="stringliteral">&quot;  bolle[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].y&quot;</span>&lt;&lt;bolle[i].y);</div>
<div class="line">                <a class="code" href="debug_8h.html#a975397c373ae2a9dc28d0297fa18da56">D2</a>(cout&lt;&lt;<span class="stringliteral">&quot; bolle[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].velocita:&quot;</span>&lt;&lt;bolle[i].velocita&lt;&lt;<span class="stringliteral">&quot; bolle[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].raggio:&quot;</span>&lt;&lt;bolle[i].raggio&lt;&lt;endl);</div>
<div class="line">        </div>
<div class="line">                <span class="keywordflow">if</span>(bolle[i].vivo)</div>
<div class="line">                {</div>
<div class="line">                        bolle[i].<a class="code" href="structBolle.html#aa24436465da1e631f5855f76ed14579c" title="Posizione sulle y.">y</a> -= bolle[i].<a class="code" href="structBolle.html#a2c740b670d8681e91fc546b059b6c14a" title="Numero di pixel con i quali si sposta.">velocita</a>;</div>
<div class="line">                        <span class="keywordflow">if</span>(bolle[i].y &lt;= 0)</div>
<div class="line">                                bolle[i].<a class="code" href="structBolle.html#a7a968c449292c92c9fe0d789731ef52b" title="Se l&#39;oggetto è vivo viene disegnato.">vivo</a> = <span class="keyword">false</span>;</div>
<div class="line">                }</div>
<div class="line">        }</div>
<div class="line">}</div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a98df7787b5691ee5ef06684680d7093a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void update_frutta </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structFrutta.html">Frutta</a>&#160;</td>
          <td class="paramname"><em>frutta</em>[], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>dim</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Per ogni frutto/dolce vivo ne aggiorna la posizione. </p>
<p>Viene aggiornata la posizione di ogni frutto/dolce ancora in vita, incrementando la sua y pari a un numero di pixel uguale alla sua velocità. </p>
<div class="fragment"><div class="line">{</div>
<div class="line">        <a class="code" href="debug_8h.html#a330bea9b36f638349fec0d06c8ab4c38">D1</a>(cout&lt;&lt;<span class="stringliteral">&quot;  update_frutta&quot;</span>&lt;&lt;endl);</div>
<div class="line">        </div>
<div class="line">        <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = 0; i &lt; dim; i++)</div>
<div class="line">        {</div>
<div class="line">                <span class="keywordflow">if</span>(frutta[i].vivo)</div>
<div class="line">                {</div>
<div class="line">                        <a class="code" href="debug_8h.html#a975397c373ae2a9dc28d0297fa18da56">D2</a>(cout&lt;&lt;<span class="stringliteral">&quot;frutta[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].ID&quot;</span>&lt;&lt;frutta[i].ID&lt;&lt;<span class="stringliteral">&quot;  frutta[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].x&quot;</span>&lt;&lt;frutta[i].x&lt;&lt;<span class="stringliteral">&quot;  frutta[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].y&quot;</span>&lt;&lt;frutta[i].y);</div>
<div class="line">                        <a class="code" href="debug_8h.html#a975397c373ae2a9dc28d0297fa18da56">D2</a>(cout&lt;&lt;<span class="stringliteral">&quot; frutta[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].velocita:&quot;</span>&lt;&lt;frutta[i].velocita&lt;&lt;<span class="stringliteral">&quot; frutta[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].boundx:&quot;</span>&lt;&lt;frutta[i].boundx&lt;&lt;<span class="stringliteral">&quot; frutta[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].boundy:&quot;</span>&lt;&lt; frutta[i].boundy&lt;&lt;endl);</div>
<div class="line">                        </div>
<div class="line">                        frutta[i].<a class="code" href="structFrutta.html#a71b27af7d085f2786e76fc9ba606a152" title="Posizione sulle y.">y</a> += frutta[i].<a class="code" href="structFrutta.html#a7ef66d51cbd37804e2e1c5778399b923" title="Numero di pixel con i quali si sposta.">velocita</a>;</div>
<div class="line">                }</div>
<div class="line">        }</div>
<div class="line">}</div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="ab88b96f74e27635fddd1e826f67c3cc1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void update_robot </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structRobot.html">Robot</a>&#160;</td>
          <td class="paramname"><em>robot</em>[], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>dim</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Aggiorna la posizione dei robot e anche le Sprite del robot, rispettado il ritardo impostato. </p>
<p>Viene aggiornata la posizione, gestita la sequenza di immagini e anche la velocità, che aumente ogni 2'000 punti. Se il punteggio cala anche la velocità calerà. </p>
<div class="fragment"><div class="line">{</div>
<div class="line">        <a class="code" href="debug_8h.html#a330bea9b36f638349fec0d06c8ab4c38">D1</a>(cout&lt;&lt;<span class="stringliteral">&quot;  update_robot&quot;</span>&lt;&lt;endl);</div>
<div class="line">        </div>
<div class="line">        <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = 0; i &lt; dim; i++)</div>
<div class="line">        {</div>
<div class="line">                <span class="keywordflow">if</span>(robot[i].vivo)</div>
<div class="line">                {               </div>
<div class="line">                        <a class="code" href="debug_8h.html#a975397c373ae2a9dc28d0297fa18da56">D2</a>(cout&lt;&lt;<span class="stringliteral">&quot;robot[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].ID&quot;</span>&lt;&lt;robot[i].ID&lt;&lt;<span class="stringliteral">&quot;  robot[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].x&quot;</span>&lt;&lt;robot[i].x&lt;&lt;<span class="stringliteral">&quot;  robot[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].y&quot;</span>&lt;&lt;robot[i].y);</div>
<div class="line">                        <a class="code" href="debug_8h.html#a975397c373ae2a9dc28d0297fa18da56">D2</a>(cout&lt;&lt;<span class="stringliteral">&quot; robot[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].velocita:&quot;</span>&lt;&lt;robot[i].velocita&lt;&lt;<span class="stringliteral">&quot; robot[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].boundx:&quot;</span>&lt;&lt;robot[i].boundx&lt;&lt;<span class="stringliteral">&quot; robot[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].boundy:&quot;</span>&lt;&lt; robot[i].boundy);</div>
<div class="line">                        <a class="code" href="debug_8h.html#a975397c373ae2a9dc28d0297fa18da56">D2</a>(cout&lt;&lt;<span class="stringliteral">&quot; robot[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].maxFrame:&quot;</span>&lt;&lt;robot[i].maxFrame&lt;&lt;<span class="stringliteral">&quot; robot[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].frameAttuale:&quot;</span>&lt;&lt;robot[i].frameAttuale);</div>
<div class="line">                        <a class="code" href="debug_8h.html#a975397c373ae2a9dc28d0297fa18da56">D2</a>(cout&lt;&lt;<span class="stringliteral">&quot; robot[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].frameCount: &quot;</span>&lt;&lt;robot[i].frameCount&lt;&lt;<span class="stringliteral">&quot; robot[&quot;</span>&lt;&lt;i&lt;&lt;<span class="stringliteral">&quot;].frameRit&quot;</span>&lt;&lt;robot[i].frameRit&lt;&lt;endl);</div>
<div class="line">                        </div>
<div class="line">                        <span class="keywordflow">if</span>(++robot[i].frameCount &gt;= robot[i].frameRit)</div>
<div class="line">                        {</div>
<div class="line">                                robot[i].<a class="code" href="structRobot.html#a3b0b5b319d69cadd862ba7c3d986019a" title="Numero di frame attuale (immagine attuale) nell&#39;array.">frameAttuale</a> ++;</div>
<div class="line">                                <span class="keywordflow">if</span>(robot[i].frameAttuale &gt;= robot[i].maxFrame)</div>
<div class="line">                                        robot[i].<a class="code" href="structRobot.html#a3b0b5b319d69cadd862ba7c3d986019a" title="Numero di frame attuale (immagine attuale) nell&#39;array.">frameAttuale</a> = 0;</div>
<div class="line">                                <span class="keywordflow">else</span> <span class="keywordflow">if</span>( robot[i].frameAttuale &lt;= 0)</div>
<div class="line">                                        robot[i].<a class="code" href="structRobot.html#a3b0b5b319d69cadd862ba7c3d986019a" title="Numero di frame attuale (immagine attuale) nell&#39;array.">frameAttuale</a> = robot[i].<a class="code" href="structRobot.html#a0e59bfef953f601cee23c78be7060abb" title="Numero di frame massimo per questo oggetto(numero di immagini dedicate)">maxFrame</a> - 1;</div>
<div class="line"></div>
<div class="line">                                robot[i].<a class="code" href="structRobot.html#a86ae39b396db04d8ebabf9bb7860292b" title="Contatore dei frame dell&#39;oggetto.">frameCount</a> = 0;</div>
<div class="line">                        }</div>
<div class="line">                        <span class="keywordflow">if</span>(<a class="code" href="booblefruit_8cc.html#ad5ff877f97ce83db08dd3c6905a66330" title="Oggetto di tipo Drago E&#39; l&#39;oggetto che usa il giocatore per interagire con il gioco.">drago</a>.<a class="code" href="structDrago.html#af7c8aef700c3afdb7129e8751c9619e2" title="Score del giocatore.">punti</a> &lt; 2000)</div>
<div class="line">                                robot[i].<a class="code" href="structRobot.html#aa9d4cd428042e1f5dd4723dd383e38d7" title="Posizione sulle y.">y</a> += robot[i].<a class="code" href="structRobot.html#ab4ec217ca18f6504a2c25596d01513ed" title="Numero di pixel con i quali si sposta.">velocita</a>;</div>
<div class="line">                        <span class="keywordflow">else</span> <span class="keywordflow">if</span>(<a class="code" href="booblefruit_8cc.html#ad5ff877f97ce83db08dd3c6905a66330" title="Oggetto di tipo Drago E&#39; l&#39;oggetto che usa il giocatore per interagire con il gioco.">drago</a>.<a class="code" href="structDrago.html#af7c8aef700c3afdb7129e8751c9619e2" title="Score del giocatore.">punti</a> &gt;= 2000 &amp;&amp; <a class="code" href="booblefruit_8cc.html#ad5ff877f97ce83db08dd3c6905a66330" title="Oggetto di tipo Drago E&#39; l&#39;oggetto che usa il giocatore per interagire con il gioco.">drago</a>.<a class="code" href="structDrago.html#af7c8aef700c3afdb7129e8751c9619e2" title="Score del giocatore.">punti</a> &lt; 4000)</div>
<div class="line">                                robot[i].<a class="code" href="structRobot.html#aa9d4cd428042e1f5dd4723dd383e38d7" title="Posizione sulle y.">y</a> += robot[i].<a class="code" href="structRobot.html#ab4ec217ca18f6504a2c25596d01513ed" title="Numero di pixel con i quali si sposta.">velocita</a>+1;</div>
<div class="line">                        <span class="keywordflow">else</span> <span class="keywordflow">if</span>(<a class="code" href="booblefruit_8cc.html#ad5ff877f97ce83db08dd3c6905a66330" title="Oggetto di tipo Drago E&#39; l&#39;oggetto che usa il giocatore per interagire con il gioco.">drago</a>.<a class="code" href="structDrago.html#af7c8aef700c3afdb7129e8751c9619e2" title="Score del giocatore.">punti</a> &gt;= 4000 &amp;&amp; <a class="code" href="booblefruit_8cc.html#ad5ff877f97ce83db08dd3c6905a66330" title="Oggetto di tipo Drago E&#39; l&#39;oggetto che usa il giocatore per interagire con il gioco.">drago</a>.<a class="code" href="structDrago.html#af7c8aef700c3afdb7129e8751c9619e2" title="Score del giocatore.">punti</a> &lt; 6000)</div>
<div class="line">                                robot[i].<a class="code" href="structRobot.html#aa9d4cd428042e1f5dd4723dd383e38d7" title="Posizione sulle y.">y</a> += robot[i].<a class="code" href="structRobot.html#ab4ec217ca18f6504a2c25596d01513ed" title="Numero di pixel con i quali si sposta.">velocita</a>+2;</div>
<div class="line">                        <span class="keywordflow">else</span> <span class="keywordflow">if</span>(<a class="code" href="booblefruit_8cc.html#ad5ff877f97ce83db08dd3c6905a66330" title="Oggetto di tipo Drago E&#39; l&#39;oggetto che usa il giocatore per interagire con il gioco.">drago</a>.<a class="code" href="structDrago.html#af7c8aef700c3afdb7129e8751c9619e2" title="Score del giocatore.">punti</a> &gt;= 6000 &amp;&amp; <a class="code" href="booblefruit_8cc.html#ad5ff877f97ce83db08dd3c6905a66330" title="Oggetto di tipo Drago E&#39; l&#39;oggetto che usa il giocatore per interagire con il gioco.">drago</a>.<a class="code" href="structDrago.html#af7c8aef700c3afdb7129e8751c9619e2" title="Score del giocatore.">punti</a> &lt; 8000)</div>
<div class="line">                                robot[i].<a class="code" href="structRobot.html#aa9d4cd428042e1f5dd4723dd383e38d7" title="Posizione sulle y.">y</a> += robot[i].<a class="code" href="structRobot.html#ab4ec217ca18f6504a2c25596d01513ed" title="Numero di pixel con i quali si sposta.">velocita</a>+3;</div>
<div class="line">                        <span class="keywordflow">else</span> <span class="keywordflow">if</span>(<a class="code" href="booblefruit_8cc.html#ad5ff877f97ce83db08dd3c6905a66330" title="Oggetto di tipo Drago E&#39; l&#39;oggetto che usa il giocatore per interagire con il gioco.">drago</a>.<a class="code" href="structDrago.html#af7c8aef700c3afdb7129e8751c9619e2" title="Score del giocatore.">punti</a> &gt;= 8000)</div>
<div class="line">                                robot[i].<a class="code" href="structRobot.html#aa9d4cd428042e1f5dd4723dd383e38d7" title="Posizione sulle y.">y</a> += robot[i].<a class="code" href="structRobot.html#ab4ec217ca18f6504a2c25596d01513ed" title="Numero di pixel con i quali si sposta.">velocita</a>+4;</div>
<div class="line">                        <span class="keywordflow">else</span> <span class="keywordflow">if</span>(<a class="code" href="booblefruit_8cc.html#ad5ff877f97ce83db08dd3c6905a66330" title="Oggetto di tipo Drago E&#39; l&#39;oggetto che usa il giocatore per interagire con il gioco.">drago</a>.<a class="code" href="structDrago.html#af7c8aef700c3afdb7129e8751c9619e2" title="Score del giocatore.">punti</a> &gt;= 10000)</div>
<div class="line">                        {</div>
<div class="line">                                robot[i].<a class="code" href="structRobot.html#aa9d4cd428042e1f5dd4723dd383e38d7" title="Posizione sulle y.">y</a> += robot[i].<a class="code" href="structRobot.html#ab4ec217ca18f6504a2c25596d01513ed" title="Numero di pixel con i quali si sposta.">velocita</a>+6;</div>
<div class="line">                                <a class="code" href="booblefruit_8cc.html#ad5ff877f97ce83db08dd3c6905a66330" title="Oggetto di tipo Drago E&#39; l&#39;oggetto che usa il giocatore per interagire con il gioco.">drago</a>.<a class="code" href="structDrago.html#a01ef6cc1424c6f25d67fcbd1d9b7aa8d" title="Numero di pixel con i quali si sposta.">velocita</a> = 12;</div>
<div class="line">                        }</div>
<div class="line">                }</div>
<div class="line">        }</div>
<div class="line">}</div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a28c727a6864f0bafac48e6749b0028d3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void update_sfondo </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structSfondo.html">Sfondo</a> &amp;&#160;</td>
          <td class="paramname"><em>sfondo</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Aggiorna la posizione dello sfondo. </p>
<p>Aggiorna la posizione dellos fondo per rendere l'effetto di scorrimento. In base ai parametri che vengono passati alla funzione lo sfondo scorre più o meno velocemente, verso l'alto o verso il basso e/o verso destra o verso sinistra. </p>
<div class="fragment"><div class="line">{</div>
<div class="line">        <a class="code" href="debug_8h.html#a330bea9b36f638349fec0d06c8ab4c38">D1</a>(cout&lt;&lt;<span class="stringliteral">&quot;  update_sfondo&quot;</span>&lt;&lt;endl);</div>
<div class="line">        </div>
<div class="line">        <a class="code" href="debug_8h.html#a975397c373ae2a9dc28d0297fa18da56">D2</a>(cout&lt;&lt;<span class="stringliteral">&quot;sfondo.x:&quot;</span>&lt;&lt;sfondo.<a class="code" href="structSfondo.html#ad67a51ec529a9ab1bae350d236c8c317" title="Posizione sulle x.">x</a>&lt;&lt;<span class="stringliteral">&quot; sfondo.y:&quot;</span>&lt;&lt;sfondo.<a class="code" href="structSfondo.html#a6196f78561c6339b7c58fa80c8e81d02" title="Posizione sulle y.">y</a>&lt;&lt;<span class="stringliteral">&quot; sfondo.velX&quot;</span>&lt;&lt; sfondo.<a class="code" href="structSfondo.html#a5f334d76a72bcdd9300c916b4e9075f9" title="Numero di pixel con i quali si sposta, sono definiti passandoli a funzione crea_sfondo.">velY</a>&lt;&lt;<span class="stringliteral">&quot; sfondo.dirX:&quot;</span>&lt;&lt;sfondo.<a class="code" href="structSfondo.html#acaee3bc03f8313e2b8bac00c37eaf10e">dirX</a>&lt;&lt;<span class="stringliteral">&quot; sfondo.dirY:&quot;</span>&lt;&lt;<span class="stringliteral">&quot; sfondo.width&quot;</span>&lt;&lt;<span class="stringliteral">&quot; sfondo.height&quot;</span>&lt;&lt;sfondo.<a class="code" href="structSfondo.html#aaaa272c2a0aac39f854071de2aebf53f" title="Altezza dell&#39;immagine.">height</a>&lt;&lt;endl);</div>
<div class="line">        </div>
<div class="line">        <span class="keywordflow">if</span>(sfondo.<a class="code" href="structSfondo.html#a5f334d76a72bcdd9300c916b4e9075f9" title="Numero di pixel con i quali si sposta, sono definiti passandoli a funzione crea_sfondo.">velY</a>)</div>
<div class="line">        {</div>
<div class="line">                sfondo.<a class="code" href="structSfondo.html#a6196f78561c6339b7c58fa80c8e81d02" title="Posizione sulle y.">y</a> += sfondo.<a class="code" href="structSfondo.html#a5f334d76a72bcdd9300c916b4e9075f9" title="Numero di pixel con i quali si sposta, sono definiti passandoli a funzione crea_sfondo.">velY</a> * sfondo.<a class="code" href="structSfondo.html#a7ecf9c5622870d6adcb1649cb0a48f0a">dirY</a>;</div>
<div class="line">                <span class="keywordflow">if</span>(sfondo.<a class="code" href="structSfondo.html#a6196f78561c6339b7c58fa80c8e81d02" title="Posizione sulle y.">y</a> + sfondo.<a class="code" href="structSfondo.html#aaaa272c2a0aac39f854071de2aebf53f" title="Altezza dell&#39;immagine.">height</a> &lt;= 0)</div>
<div class="line">                        sfondo.<a class="code" href="structSfondo.html#a6196f78561c6339b7c58fa80c8e81d02" title="Posizione sulle y.">y</a> = 0;</div>
<div class="line">        }</div>
<div class="line">        <span class="keywordflow">if</span>(sfondo.<a class="code" href="structSfondo.html#ad040a5082212baac810a74c653148d9e" title="Numero di pixel con i quali si sposta, sono definiti passandoli a funzione crea_sfondo.">velX</a>)</div>
<div class="line">        {</div>
<div class="line">                sfondo.<a class="code" href="structSfondo.html#ad67a51ec529a9ab1bae350d236c8c317" title="Posizione sulle x.">x</a> += sfondo.<a class="code" href="structSfondo.html#ad040a5082212baac810a74c653148d9e" title="Numero di pixel con i quali si sposta, sono definiti passandoli a funzione crea_sfondo.">velX</a> * sfondo.<a class="code" href="structSfondo.html#acaee3bc03f8313e2b8bac00c37eaf10e">dirX</a>;</div>
<div class="line">                <span class="keywordflow">if</span>(sfondo.<a class="code" href="structSfondo.html#ad67a51ec529a9ab1bae350d236c8c317" title="Posizione sulle x.">x</a> + sfondo.<a class="code" href="structSfondo.html#a30baf848d22cf79229edf303c5836266" title="Larghezza dell&#39;immagine.">width</a> &lt;= 0)</div>
<div class="line">                        sfondo.<a class="code" href="structSfondo.html#ad67a51ec529a9ab1bae350d236c8c317" title="Posizione sulle x.">x</a> = 0;           </div>
<div class="line">        }</div>
<div class="line">}</div>
</div><!-- fragment -->
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generato Lun 10 Giu 2013 11:45:14 per Bobble Fruit da &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.1.2
</small></address>
</body>
</html>
